package com.buss.mytest;

import com.buss.util.Constant;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.junit.Test;

import static com.buss.util.Constant.application;

/**
 * 类描述：
 * @version: 1.0
 * @author: Administrator
 * @version: 2017
 */
public class PropertiesUtil
{
    static final Logger logger = LogManager.getLogger(PropertiesUtil.class.getName());

    @Test
    public void test() throws Exception {

        String location = application.getString("location");
        logger.info("location="+location);
        String repo = application.getString("location.http.repo");
        logger.info("repo="+repo);

    }

    @Test
    public void test2() throws Exception {

        String location = Constant.location;
        logger.info("location="+location);
        String repo = Constant.repo;
        logger.info("repo="+repo);

    }

}